//高阶函数
import {
    ref, h
} from 'vue'
import ptcomp from './ptcomp.vue';
export function gjhs() {
    return {
        setup(props) {
            const b = ref(0);
            const addb = () => {
                b.value++
            }
   
            return () => h(ptcomp, {
                ...props,
                b,
                addb
            })
        },
    }

}